'''
内联对象使用
'''

from docx import Document
from docx.shared import Pt

doc = Document()
p = doc.add_paragraph()
run = p.add_run('内联对象')
font = run.font
font.size = Pt(35)
font.italic = True
doc.save('inline_object.docx')